/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const permissionRouter = {
  path: '/permission',
  component: Layout,
  redirect: 'noRedirect',
  name: 'permissionDemo',
  meta: {
    title: '权限管理',
    icon: 'component'
  },
  children: [
    {
        path: 'role',
        component: () => import('@/views/permission/role/index'),
        name: 'permissionRole',
        meta: {
          title: '角色管理'
        }
      },
    {
      path: 'user',
      component: () => import('@/views/permission/user/index'),
      name: 'permissionUser',
      meta: {
        title: '用户管理'
      }
    },
    {
        path: 'menu',
        component: () => import('@/views/permission/menu/index'),
        name: 'permissionMenu',
        meta: {
          title: '菜单管理'
        }
      }

  ]
}

export default permissionRouter
